#!/bin/bash 

# XXX: does shutdown action remove the images?

source $(dirname $0)/utils.sh

DEPLOY_ID=$1
debug "SHUTDOWN: shutdown $DEPLOY_ID"

vbox_shutdown "$DEPLOY_ID" acpi $ACPI_RECHECK $ACPI_SLEEP_INTERVAL
STATUS=$?

debug "EXIT STATUS FROM SHUTDOWN: $STATUS"

exit $STATUS
